package cn.kmsoft.spatialboot.config;

/**
 * 数据库类型
 */
public class DbType {
    //ORACLE(10000, "oracle","oracle.jdbc.driver.OracleDriver"),
    //POSTGRESQL(10001, "postgresql","org.postgresql.Driver"),
    //MYSQL(10002, "mysql","com.mysql.cj.jdbc.Driver");

    private int dbCode;
    private String typeName;
    private String driverClassName;


    public DbType(){
        //
    }
    public DbType(int dbCode, String typeName) {
        this.dbCode = dbCode;
        this.typeName = typeName;
    }
    public DbType(int dbCode, String typeName, String driverClassName) {
        this.dbCode = dbCode;
        this.typeName = typeName;
        this.driverClassName = driverClassName;
    }

    public int getDbCode() {
        return dbCode;
    }
    public void setDbCode(int dbCode) {
        this.dbCode = dbCode;
    }

    public String getTypeName() {
        return typeName;
    }
    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getDriverClassName() {
        return driverClassName;
    }
    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }

    @Override
    public String toString() {
        return "DbType{" +
                "dbCode=" + dbCode +
                ", typeName='" + typeName + '\'' +
                ", driverClassName='" + driverClassName + '\'' +
                '}';
    }
}
